Processing of video content

ABSTRACT

Processing of video content including sports.

This application claims the benefit of U. S. Provisional PatentApplication Ser. No. 60/439,240 filed on Jan. 10, 2003.

BACKGROUND OF THE INVENTION

The present invention relates to processing of video content.

The amount of video content is expanding at an ever increasing rate,some of which includes sporting events. Simultaneously, the availabletime for viewers to consume or otherwise view all of the desirable videocontent is decreasing. With the increased amount of video contentcoupled with the decreasing time available to view the video content, itbecomes increasingly problematic for viewers to view all of thepotentially desirable content in its entirety. Accordingly, viewers areincreasingly selective regarding the video content that they select toview. To accommodate viewer demands, techniques have been developed toprovide a summarization of the video representative in some manner ofthe entire video. Video summarization likewise facilitates additionalfeatures including browsing, filtering, indexing, retrieval, etc. Thetypical purpose for creating a video summarization is to obtain acompact representation of the original video for subsequent viewing.

There are three major approaches to video summarization. The firstapproach for video summarization is key frame detection. Key framedetection includes mechanisms that process low level characteristics ofthe video, such as its color distribution, to determine those particularisolated frames that are most representative of particular portions ofthe video. For example, a key frame summarization of a video may containonly a few isolated key frames which potentially highlight the mostimportant events in the video. Thus some limited information about thevideo can be inferred from the selection of key frames. Key frametechniques are especially suitable for indexing video content but arenot especially suitable for summarizing sporting content.

The second approach for video summarization is directed at detectingevents that are important for the particular video content. Suchtechniques normally include a definition and model of anticipated eventsof particular importance for a particular type of content. The videosummarization may consist of many video segments, each of which is acontinuous portion in the original video, allowing some detailedinformation from the video to be viewed by the user in a time effectivemanner. Such techniques are especially suitable for the efficientconsumption of the content of a video by browsing only its summary. Suchapproaches facilitate what is sometimes referred to as “semanticsummaries”.

The third approach for video summarization is manual segmentation of thevideo. In this manner each portion of the video that is determined to beof interest is selected. The selected segments of the video are thengrouped together to form a video sequence comprising the selectedsegments. In some cases a new video sequence is constructed from theselected segments, and in other cases the segments are identified in theexisting sequence so that they may be viewed in sequence (while notviewing the non-selected segments).

What is desired, therefore, is a video processing technique suitable forvideo.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A is an exemplary flowchart for play and non-play detection.

FIG. 1B is an exemplary flowchart for play detection.

FIG. 2 is an exemplary illustration of a hiking scene in football.

FIG. 3 is an exemplary illustration of a kicking scene in football.

FIG. 4 illustrates one example of a generally green color region.

FIG. 5 is a technique for defining the generally green color region.

FIG. 6 is a technique for defining histograms for the field frames.

FIG. 7 illustrates the definition of a central region of a frame and/orfield.

FIG. 8 illustrates candidate frame selection based upon an initialgenerally green selection.

FIG. 9 is an exemplary illustration of a hiking scene in football.

FIG. 10 illustrates edge detection for the image in FIG. 9.

FIG. 11 illustrates parametric lines for the edge detection of FIG. 10.

FIG. 12 illustrates computed motion vectors for football video.

FIG. 13 illustrates an exemplary start of a football play.

FIG. 14 illustrates a green mask for the image of FIG. 13.

FIG. 15 illustrates an exemplary green mask for an image of a footballplayer.

FIG. 16 illustrates an exemplary football player.

FIG. 17 illustrates a projection of the green mask of FIG. 14.

FIG. 18 illustrates a projection of the green mask of FIG. 15.

FIG. 19 is an illustration of temporal evidence accumulation.

FIG. 20 is an illustration of the U-V plane.

FIG. 21A illustrates changes between frames.

FIG. 21B is an illustration of detecting the end of a play in football.

FIGS. 22A-22F illustrates the start of a baseball play.

FIG. 23 illustrates one technique for play detection for baseball.

FIG. 24 illustrates a temporal frame validation technique.

FIG. 25 illustrates color selection for plays.

FIG. 26 illustrates the frame breaks between plays.

FIG. 27 is an exemplary flow chart for determining the end of a play.

FIG. 28 illustrates three constituent shots of the same play (from leftto right): scoreboard, sideline shot, and end-zone shot.

FIG. 29 illustrates components of a deterministic approach

FIG. 30 illustrates abnormal frame (logo overlay on the field, shadow,distorted color, etc) for using percentage of green pixels in detectingan SL/EZ shot.

FIG. 31 illustrates empirical length distributions of SB and SL/EZ,respectively.

FIG. 32 illustrates empirical D distributions for SB and SL/EZ,respectively, showing significant overlaps.

FIG. 33 illustrates a 4 state Hidden Markov Model.

FIG. 34 illustrates a simple first-order Markov transition model formodeling the transitions between SB, SL, and EZ.

FIG. 35 illustrates a system embodying aspects of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Sumo Wrestling

Sumo, the national sport of Japan, is tremendously popular in easternAsia and is growing in popularity elsewhere in the world. Sumo is asport comprising bouts in which two contestants meet in a circular ring4.55 meters in diameter. The rules of Sumo are uncomplicated. After thecontestants and a referee have entered the circular ring, the boutbegins with an initial charge—called a “tachiai”—where each contestantrushes towards, then collides with, the other. The bout will end whenone of the contestant loses by either stepping outside the circular ringor touching the ground with any part of the contestant's body other thanthe soles of the feet. Aside from a limited number of illegal moves,such as gouging the opponent's eyes, striking with a closed fist, orintentionally pulling at the opponent's hair, there are no rules thatgovern a sumo bout.

Sumo participants may compete against each another in one of a number oftournaments. Japan sponsors six sanctioned Grand Sumo tournaments, heldin odd-numbered months throughout the year, in which competitive sumocontestants face one another with the opportunity for advancement inrank. Sumo contestants are ranked under a strict meritocracy; winningbouts in these sanctioned tournaments improves a competitor's rank whilelosing bouts diminishes that rank. Aside from the six sanctionedtournaments, a number of exhibition tournaments—called Jungyo—arescheduled throughout the year.

Though a sumo tournament will typically take place over several weekswith bouts scheduled throughout each day, most bouts of interest, i.e.those involving higher ranked contestants, are scheduled to begin lateafternoon when live television broadcasts of the tournament occur. Theseportions of the sumo tournaments usually last 2-3 hours each day and areoften video recorded for later distribution or for re-broadcast.

Though such a video of a sumo tournament might typically last about 2-3hours, only about ten minutes turns out to include time during which twoplayers are in a bout. An individual sumo bout is brief; the typicalbout will end with the initial collision, though a rare bout might lasttwo to three minutes. Interspersed between bouts are a large number ofceremonies that precede and follow each bout.

Though brief, the time intervals during which a bout is proceeding areintense and can captivate those in the viewing audience, many of whomare able to identify a myriad of named sumo techniques that may occur inrapid succession. Such techniques include a “kekaeshi” (a foot-sweep), a“kubinage” (a head-lock throw), and an “izori” (a technique where acontestant crouches below the opponent's rush, grabbing one of theopponent's legs, lifting the opponent upon the shoulders and fallingbackwards), as well as some sixty five to seventy more named sumotechniques or occurrences.

The remaining time during the sumo tournament is typically not excitingto watch on video. Such time would include for example inter-boutchanges of players, pre-bout exercises and ceremonies, post-boutceremonies and in the case of broadcast, nearly endless commercials.While it may indeed be entertaining to sit in an arena for several hoursfor a sumo tournament, many people who watch a video of a sumotournament find it difficult to watch all of the tournament, even ifthey are rabid fans. Further, the tournaments are held during daytimehours, hence many fans are unable to attend a tournament or to watch alive broadcast due to work. Such fans may nonetheless be interested inwatching specific bouts or some other condensed version of thetournament. Thus a video summarization of the sumo tournament thatprovides a summary of the tournament having a duration shorter than theoriginal sumo video, may be appealing to many people. The videosummarization should provide nearly the same level of the excitement(e.g. interest) that the original game provided.

Upon initial consideration, sumo would not be a suitable candidate toattempt automated video summarization. Initially, there are nearly anendless number of potential moves that may occur that would need to beaccounted for in some manner. In addition, each of these moves mayinvolve significant player motion that is difficult to anticipate,difficult to track, and is not consistent between plays. In addition,the players are flesh toned and the ring is likewise generally fleshtoned making identification of the events difficult. Based upon suchconsiderations it has been previously considered impractical, if notimpossible, to attempt to summarize sumo.

It is conceivably possible to develop highly sophisticated models of atypical sumo video to identify potentially relevant portions of thevideo. However, such highly sophisticated models are difficult to createand are not normally robust. Further, the likelihood that a majority ofthe highly relevant portions of the sumo video will be included in sucha video summarization is low because of the selectivity of the model.Thus the resulting video summarization of the sumo tournament may simplybe unsatisfactory to the average viewer.

Baseball

A typical baseball game lasts about 3 hours of which only about one hourturns out to include time during which the ball is in action. The timeduring which the ball is in action is normally the exciting part of thegame, such as for example, pitching the ball to the batter, hitting ahome run, hitting the ball, running the bases, a pitch to first base,pitching a “foul” ball, pitching a “strike” ball, pitching a “ball”,fouling the ball to the bleachers, catching a pop fly, etc. Theremaining time during the baseball game is typically not exciting towatch on video, such as for example, nearly endless commercials, thetime during which the players change from batting to fielding, the timeduring which the players walk to the plate, the time during which theplayers walk around between innings, the time during which the managertalks to the pitcher, the time during which the umpire cleans homeplate, the time during which the batter swings the bat in practice, thetime during which the batter just waits for the pitcher, the time duringwhich the spectators are viewed in the bleachers, the time during whichthe commentators talk, etc. While it may indeed be entertaining to sitin a stadium for three hours for a one hour baseball game, many peoplewho watch a video of a baseball game find it difficult to watch all ofthe game, even if they are loyal fans. A video summarization of thebaseball video, which provides a summary of the game having a durationshorter than the original baseball video, may be appealing to manypeople. The video summarization should provide nearly the same level ofthe excitement (e.g. interest) that the original game provided.

It is possible to develop highly sophisticated models of a typicalbaseball video to identify potentially relevant portions of the video.However, such highly sophisticated models are difficult to create andare not normally robust. Further, the likelihood that a majority of thehighly relevant portions of the baseball video will be included in sucha video summarization is low because of the selectivity of the model.Thus the resulting video summarization of the baseball game may simplybe unsatisfactory to the average viewer.

Football

A typical football game lasts about 3 hours of which only about one hourturns out to include time during which the ball is in action. The timeduring which the ball is in action is normally the exciting part of thegame, such as for example, a kickoff, a hike, a pass play, a runningplay, a punt return, a punt, a field goal, etc. The remaining timeduring the football game is typically not exciting to watch on video,such as for example, nearly endless commercials, the time during whichthe players change from offense to defense, the time during which theplayers walk onto the field, the time during which the players are inthe huddle, the time during which the coach talks to the quarterback,the time during which the yardsticks are moved, the time during whichthe ball is moved to the spot, the time during which the spectators areviewed in the bleachers, the time during which the commentators talk,etc. While it may indeed be entertaining to sit in a stadium for threehours for a one hour football game, many people who watch a video of afootball game find it difficult to watch all of the game, even if theyare loyal fans. A video summarization of the football video, whichprovides a summary of the game having a duration shorter than theoriginal football video, may be appealing to many people. The videosummarization should provide nearly the same level of the excitement(e.g. interest) that the original game provided.

Upon initial consideration, football would not be a suitable candidateto attempt automated video summarization. Initially, there are nearly anendless number of potential plays that may occur which would need to beaccounted for in some manner. Also, there are many different types ofplays, such as a kickoff, a punt, a pass play, a kickoff return, arunning play, a reverse play, an interception, a sack, etc., thatlikewise would need to be accounted for in some manner. In addition,each of these plays involves significant player motion which isdifficult to anticipate, difficult to track, and is not consistentbetween plays. Moreover, the ball would normally be difficult, if notimpossible, to track during a play because much of the time it isobscured from view. For example, it would be difficult to distinguishinteresting play related activity from typical pre-play activity of theplayers walking around the field getting ready for the next play. Basedupon such considerations has been previously considered impractical, ifnot impossible, to attempt to summarize football.

It is conceivably possible to develop highly sophisticated models of atypical football video to identify potentially relevant portions of thevideo. However, such highly sophisticated models are difficult to createand are not normally robust. Further, the likelihood that a majority ofthe highly relevant portions of the football video will be included insuch a video summarization is low because of the selectivity of themodel. Thus the resulting video summarization of the football game maysimply be unsatisfactory to the average viewer.

Video Content Including Sports

It may be observed that many different types of video content, includingfor example sporting events, include a game or activity that lasts asignificant period of time of which only a relatively short duration ofwhich turns out to include time during which interesting activity isoccurring. The time during which interesting action is occurring isnormally the exciting part of the game, such as for example, a kickoff,a hike, a pass play, a running play, a punt return, a punt, a fieldgoal, etc. The remaining time during the video content is typically notexciting to watch on video, such as for example, nearly endlesscommercials, the time during which the players change from offense todefense, the time during which the players walk onto the field, the timeduring which the players are in the huddle, the time during which thecoach talks to the quarterback, the time during which the yardsticks aremoved, the time during which the ball is moved to the spot, the timeduring which the spectators are viewed in the bleachers, the time duringwhich the commentators talk, inter-bout changes of players, pre-boutexercises and ceremonies, post-bout ceremonies, the time during whichthe players change from batting to fielding, the time during which theplayers walk to the plate, the time during which the players walk aroundbetween innings, the time during which the manager talks to the pitcher,the time during which the umpire cleans home plate, the time duringwhich the batter swings the bat in practice, the time during which thebatter just waits for the pitcher, the time during which the spectatorsare viewed in the bleachers, the time during which the commentatorstalk, etc. While it may indeed be entertaining to watch for severalhours for a one hour activity, many people who watch a video of asporting event find it difficult to watch all of the event, even if theyare loyal fans. A video summarization of the video, such as sportingvideos, which provides a summary of the event having a duration shorterthan the original video, may be appealing to many people. The videosummarization should provide nearly the same level of the excitement(e.g. interest) that the original game provided.

As previously discussed, upon initial consideration, sporting eventswould not be a suitable candidate to attempt automated videosummarization. Initially, there are nearly an endless number ofpotential plays that may occur which would need to be accounted for insome manner. Also, there are many different types of plays, thatlikewise would need to be accounted for in some manner. In addition,each of these plays involves significant player motion which isdifficult to anticipate, difficult to track, and is not consistentbetween plays. Moreover, any balls or other items would normally bedifficult, if not impossible, to track during a play because much of thetime it is obscured from view. For example, it would be difficult todistinguish interesting play related activity from typical pre-playactivity of the participants walking around getting ready for the nextplay. Based upon such considerations has been previously consideredimpractical, if not impossible, to attempt to summarize sporting events.

It is conceivably possible to develop highly sophisticated models of atypical activity to identify potentially relevant portions of the video.However, such highly sophisticated models are difficult to create andare not normally robust. Further, the likelihood that a majority of thehighly relevant portions of the video will be included in such a videosummarization is low because of the selectivity of the model. Thus theresulting video summarization of the event may simply be unsatisfactoryto the average viewer.

Play Selection

After consideration of the difficulty of developing highly sophisticatedmodels of a video to analyze the content of the video, as the sole basisupon which to create a summarization, the present inventors determinedthat this technique is ultimately flawed as the models will likely neverbe sufficiently robust to detect all the desirable content. Moreover,the number of different types of model sequences of potentiallydesirable content is difficult to quantify. In contrast to attempting todetect particular model sequences, the present inventors determined thatthe desirable segments in terms of understanding, following, or evenappreciating the game is limited. These important portions occursemi-periodically and sparsely during the game, but they contain themoments of intense action and are the essence of a game. The remainingtime is typically less important. Therefore preferably the events areselected based upon a “play”. A “play” may be defined as a sequence ofevents defined by the rules of the event. In particular, and in oneaspect, the sequence of events of a “play” may generally include thetime between which the players set up to start an activity and the timeduring which the activity is completed. A play may also selectivelyinclude certain pre-activity ceremonies or events. Normally the “play”should include a related series of activities that could potentiallyresult in a victory by one contestant and a loss by the othercontestant.

It is to be understood that the temporal bounds of a particular type of“play” does not necessarily start or end at a particular instance, butrather at a time generally coincident with the start and end of the playor otherwise based upon, at least in part, a time (e.g., event) basedupon a play. A summarization of the video is created by including aplurality of video segments, where the summarization includes fewerframes than the original video from which the summarization was created.A summarization that includes a plurality of the plays of the eventprovides the viewer with a shorted video sequence while permitting theviewer to still enjoy the event because most of the exciting portions ofthe video are provided, preferably in the same temporally sequentialmanner as in the original video. In addition, it is to be understoodthat although summarization often achieves compression at the same time,it is different from video coding which aims at representing theoriginal video with less data. In fact, summarization may be consideredmore concerned about the compact representation of the “content” in thevideo, whereas video coding is more concerned about representing thevideo signal itself as accurately and as bandwidth-efficient aspossible.

Play Detection

Referring to FIG. 1A, a model of a class of sports video in terms ofplay is shown. The play portion is a basic segment of time during whichan important action occurs in the game. The non-play is a segment oftime during which a non-important action occurs in the game, orotherwise not determined to be a play. The inner loop illustrated indashed lines indicates the possibility that two plays may occurconsecutively or with a relatively short time period between the twoplays.

Referring to FIG. 1B, a procedure for summarization of a video includesreceiving a video sequence 20 that includes material to be summarized,where the content preferably includes at least a portion of a game orsporting event. Block 22 detects the start of a play of a video segmentof a plurality of frames of the video. After detecting the start of theplay, block 24 detects the end of the play, thereby defining a segmentof video between the start of the play and the end of the play, namely,a “play”. Block 26 then checks to see if the end of the video (or theportion to be processed) has been reached. If the end of the video hasnot been reached block 26 branches to block 22 to detect the next play.Alternatively, if the end of the video has been reached then block 26branches to the summary description 28. The summary description definesthose portions of the video sequence 20 that contain the relevantsegments for the video summarization. The summary description may becompliant with the MPEG-7 Summary Description Scheme or TV-AnytimeSegmentation Description Scheme. A compliant media browser may apply thesummary description to the input video to provide summarized viewing ofthe input video without modifying it. Alternatively, the summarydescription may be used to edit the input video and create a separatevideo sequence. The summarized video sequence may comprise the selectedsegments which excludes at least a portion of the original video otherthan the plurality of segments. Preferably, the summarized videosequence excludes all portions of the original video other than theplurality of segments.

One component of the summarization procedure depicted in FIGS. 1A and 1Bis the detection of an event, or “play.” If the start and end points ofall plays are detected, then the system may string all the playstogether to obtain a summary from the original video and perform somepost processing to smooth the transition boundaries, such as usingdissolving techniques to reduce abrupt change between plays andsmoothing the audio filed for better auditory effects. Further, thesummary should ideally contain only those segments comprising a “play”as earlier defined (or portions of plays), thus providing a compactrepresentation of the original tournament. With a compact representationthe user can spend less time watching it while maintaining most of theexcitement of the original game.

One of the difficulties in the detection of a “play” in a sportingbroadcast is the detection of the events. However, the present inventorshave come to the realization that for sporting broadcasts, and otherbroadcasts, the general video capturing and production patterns thathave been adopted by virtually all of the broadcast companies permitsthe detection of the events. Hence, relatively low-level visual featuresmay be used for event detection that are relatively invariant.

With the summarization being determined based upon low-levelcharacteristics of the video, the system should detect an event (e.g., aplay). In contrast to a generic summarization scheme which uses forexample color histograms as the cue for key frame detection or sceneclassification, the different plays may contain colors which sweep alarge range of color (in terms of histogram), yet all the frames belongto the same event, and may be used to form an uninterrupted video clip.

Football Play Detection

The present inventors then considered how to detect a “play” from afootball video in a robust, efficient, and computationally effectivemanner. After extensive analysis of a typical football game it wasdetermined that a football game is usually captured by cameraspositioned at fixed locations around the football field, with eachcamera typically capable of panning, tilting, and zooming. Each play ina football game normally starts with the center hiking the ball, such astoward the quarterback or kicker. Further, a hiking scene, in which thecenter is about to hike the ball, is usually captured from a cameralocation to the side of the center. This camera angle is typically usedbecause it is easier to observe the movements of all of the partiesinvolved (the offense, the center, the quarterback, the receivers, therunning back, and the defense) from this viewpoint. Thus a playtypically starts with a frame such as shown in FIG. 2.

While an attempt to determine a hiking scene may include complexcomputationally intensive analysis of the frame(s) to detect the center,the quarterback, or the kicker, and the offense/defense, together withappropriate motion, this generally results in non-robust hiking scenedetection. To overcome this limitation the present inventors weredumbfounded to recognize that the scenes used to capture a footballvideo typically use the same set of camera angles. The football gamenormally includes cameras sitting either on one side of the field and onthe two ends of the field. The side cameras are normally located in thestadium above the 25, 50, and 25 yard lines, and the two end cameras arelocated at the ends of the fields. There may be additional cameras, suchas handheld cameras, but most of the events are captured by the sidecameras and the end cameras. In general there are two different types ofplays, namely, place kicks and regular plays (e.g., plays that are notplace kicks). In general, place kicks (which include the kick-offs,extra point attempts, and field goal attempts) are usually captured by acamera near the end of the field, while a regular play (including runs,passes, and punts) is usually captured by a side camera. It is alsonoted that a kick-off is usually captured by an end camera followed by aside camera. Accordingly, the different plays of a football video may becategorized as one of two different types of plays, namely, a placekick, and a regular play.

The regular play typically starts with a frame such as that shown inFIG. 2. The camera then follows the ball until the ball is called dead,at which time the current regular play ends. After the end of theregular play there is typically a camera break, at which time the cameraviews other activity, such as the commentators or the fans. The timebetween the camera break and the start of the next play is usually notexciting and thus should not be included in the summary.

The place kick typically starts with a frame such as that shown in FIG.3, and it normally ends with a camera break, in a manner similar to theregular play. For the place kick, there are normally more than onecamera break before the end of the play, such as for example, a firstcamera break at the switch from the end camera to the side camera, and asecond camera break when the play ends.

To determine a start of a play, such as those shown in FIGS. 2 and 3,the present inventors considered criteria that may be suitable tocharacterize such an event. The criteria to determine the start of theplay is based on anticipated characteristics of the image, as opposed toanalyzing the content of the video to determine the actual events. Onecriteria that may be used to determine the start of a play is the fieldcolor. Under the assumption that a camera provides a typical start framelike those shown in FIGS. 2 or 3, it may be observed that the field hasa generally green color. Accordingly, a characteristic of the start of aplay may be if a sufficient spatial region of the frame has thegenerally green color. The sufficient spatial generally green region maybe further defined by having shape characteristics, such assubstantially straight edges, a set of substantially parallel edges, afour-sided polygon, etc. Further, the spatial region of the generallygreen color is preferably centrally located within the frame. Thus, itwould initially appear that the start of a play can be detected bylocating frames with a generally green dominant color in the centralregion. The aforementioned color test is useful in detecting the startof a play. However, after further analysis it was determined that merelydetecting the generally green dominant color centrally located issufficient but may be insufficient for a robust system. For example insome implementations, a dominant generally green color may be anecessary condition but not a sufficient condition for determining thestart frame of play.

For example, the color characteristic of a central spatial generallygreen region may exist when the camera is focused on a single player onthe field prior to a play. In addition, the precise color of thegenerally green color captured by the camera varies from field to field,from camera to camera, and from day to night. In fact, even for a givengame, since it may start in late afternoon and last into early evening,the lighting condition may change, causing the generally green color ofthe same field to vary significantly during the video. Moreover, thegenerally green field color is typically not uniform and includesvariations. Thus it is preferably not to use a narrow definition of thegenerally green color (e.g., excluding other non-green specific colors).Therefore, it is preferable to use a broad definition of generallygreen. If a broad definition of a generally green color is used, such asones that includes portions of other colors, then a greater number ofnon-play scenes will be identified.

With the generally green color of the field not being constant, it isdesirable to calibrate the generally green color for a specific footballvideo. Further, it is desirable to calibrate the generally green colorfor a specific portion of a football video, with the generally greencolor being recalibrated for different portions of the football video.Referring to FIG. 4, using the hue component in the HSV color space asan example, the preferred system provides a range of generally greencolors, such as G_(low) and G_(high), with generally green being definedthere between. The G_(low) and/or G_(high) may be automatically modifiedby the system to adapt to each particular football video and todifferent portions of the video.

With the variation of the field color even within a game, the presentinventors determined that a color histogram H_(g) of the generally greencolor in addition to a range given by G_(low) and G_(high), provides amore accurate specification of the field color. The H_(g) may calibratedfor a specific football video. Also H_(g) may be calibrated for aspecific portion of the football video, with the H_(g) beingrecalibrated for different portions of the football video. Even with twoframes of the video showing the field the resulting color histogramswill tend to be different. Thus, it is useful to estimate the extent towhich the field color histograms vary in a particular football video, orportion thereof. It is preferable to use the field scenes, howeverdetected, from which to estimate the color histograms.

The following technique may be used to determine G_(low), G_(high), andH_(g). Referring to FIG. 5, for all (or a portion of) the framescontaining the field all the generally green pixels are located. Forthis initial determination preferably the generally green pixels aredefined to include a large interval. The interval may be defined asG0=[G0 _(low), G0 _(high)]. Next a statistic measure of the generallygreen pixels is calculated, such as the mean hue green value G_(mean) ofall the pixels. Next G_(low) and G_(high) may be set. One technique forsetting G_(low) and G_(high) is: G_(low)=G_(mean)−g,G_(high)=G_(mean)+g, where g is a constant such that G_(high)−G_(low)<G0_(high)−G0 _(low). In essence, the technique narrows (i.e., reduces itsgamut) the range of generally green colors based on color basedinformation from the football video.

The following technique may be used to determine the color histogramH_(g). Referring to FIG. 6, all (or a portion of) the frames containingthe field are selected. Within these field frames all (or a portion on)the pixels falling in the range of G_(low) and G_(high) are selected.Other ranges of generally green colors may likewise be used. The colorhistogram H_(i) for each of these sets of pixels in each of the framesis then determined. Then H_(g) is computed as a statistical measure,such as the average, of all the calculated color histograms H_(i). Inparticular the variation of H_(g) may be calculated as follows:

For any frame containing the field, compute the error between H_(i) andH_(g):e _(i) =∥H _(g) −H _(i)∥ where ∥·∥ is the L _(i) norm.

The sample mean is computed as:$m_{e} = {\frac{1}{N}{\sum\limits_{i}e_{i}}}$

The sample standard deviation of all the errors is calculated as:$v = {\sum\limits_{i}\left( {\left( {e_{i} - m_{e}} \right)^{2}/\left( {N - 1} \right)} \right)^{\frac{1}{2}}}$

-   -   with N being the number of frames, v being a measure for        evaluating how a color histogram is different from the average        H_(g).        With the green color being calibrated, the system may test if a        frame is likely the start of a play by checking the following        two conditions:    -   (1) if the frame has more than P₁% generally green pixels;    -   (2) if the color histogram H₁ of these generally green pixels is        close enough to Hg.        The first condition may be examined by counting the number of        pixels whose hue value falls in G_(low), G_(high). The second        condition may be examined by checking if the difference between        H₁ and H_(g) is smaller than a threshold, i.e., if        ∥H₁−H_(g)∥<T_(h). The threshold T_(h) may be determined as:        T _(h) =m _(e) +c·v,        where c is a constant, typically 3 or 4.        If both conditions are satisfied, then a potential start is        detected, and this frame may then be further checked by other        modules if it is desirable to confirm a detection. If however,        the frame has only more than P₂% green pixels (P₂<P₁), and the        second condition is satisfied, then the field line detection        module described later should be used to increase the confidence        of an accurate determination of a potential start of a play.

After consideration of actual frames of the start of a play in footballvideos the present inventors observed that sometimes the start framescontain non-field regions on the top and the bottom, and further maycontain editing bars on the side or on the bottom. These factors are notespecially compatible with the use of the thresholds P₁ and P₂, aspreviously described. For the thresholds P₁ and P₂ to be more robust,only the center region (e.g., primarily generally within such non-fieldregions and editing bars) of the frame should be used when computing thepercentages. Referring to FIG. 7, the center region may be defined asfollows:

-   -   (1) scan a frame row-by row, starting from the first row, until        a row that has dominant generally green pixels is located, or        until a predetermined maximum is reached, whichever occurs        first;    -   (2) scan the frame row-by-row, starting from the bottom row,        until a row that has dominant generally green pixels is located,        or until a predetermined maximum is reached, whichever occurs        first;    -   (3) scan the frame column-by-column, starting from the right        column until a column that has dominant generally green pixels        is located, or until a predetermined maximum is reached,        whichever occurs first;    -   (4) scan the frame column-by-column, starting from the left        column until a column that has dominant generally green pixels        is located, or until a predetermined maximum is reached,        whichever occurs first;    -   (5) the locations at which the scanning stopped (e.g., found the        dominant generally green color or otherwise a predetermined        maximum), defines the central region of the frame.        The preferred predetermined maximums are ¼ of the row number as        the constant in the scanning of the rows and ⅙ of the column        number as the constant in the scanning of the columns.

After further consideration of the football video, the present inventorslikewise observed a pattern exhibited by the football video at the startof a play, namely, the field lines. The presence of the field lines is astrong indication of the existence of a corresponding field being viewedby the camera. The field lines may be characterized by multiplesubstantially parallel spaced apart substantially straight lines orlines on a contrasting background. The field lines may alternatively becharacterized by multiple spaced apart generally white lines. Inaddition, the field lines may be characterized as a pattern of lines ona background primarily a generally green color. Also, the field linesmay be further constrained as being of a sufficient length relative tothe size of the field or image. In the preferred system, the field linesare characterized as two, three, or four of the above. This lengthconsideration removes shorter lines from erroneously indicating a field.The identification of the frames of video representing fields using thefield lines may be used as the basis for the color calibration, ifdesired.

Referring to FIG. 8, the preferred system includes candidate frameselection by using an initial green specification, such as G0=[G0_(low), G0 _(high)]. Then those frames with a primary color G0 areidentified. A green mask may be obtained by setting a value of “1” tolocations defined by the G0 color and “0” to the other locations. Thegreen mask may then be diluted, if desired, to allow the inclusion ofsmall regions adjacent to the green G0 region. The edge detection maythen be performed on the frames followed by filtering with the greenmask. This step is intended to eliminate those edge pixels that are noton the generally green background. A line detection is then performed onthe filtered edge map, such as with a Hough transform, to get lines thatare longer than L_(min). It is to be understood that any suitabletechnique may be used to identify the lines, and in particular the lineswithin a generally green background.

After experimentation with the line detection scheme there remains asmall probability that such line detection will result in falsepositives, even in a generally green background. The present inventorsfurther considered that an image of a field from a single viewpointresults in some distortion of the parallel alignment of the field lines.In particular, a plurality of the field lines will appear to converge atsome point (or points). Preferably, all of the field lines will appearto pass through approximately the same disappearing point since thefield lines are parallel to one another on the field. Referring to FIG.9, a sample frame is shown. Referring to FIG. 10, the result of the edgedetection is shown. Referring to FIG. 11, the parametric lines along thevertical direction are illustrated, with the lines passing generallythrough the same point.

In the preferred system, the condition that is used is detecting atleast three lines that pass through approximately the same point whenprojected. This additional condition, especially when used inconjunction with previous field line determination, significantlydecreases the likelihood of false positives. Similarly, when the frameis from an end camera, such as shown in FIG. 3, the field lines wouldappear to be nearly horizontal and parallel to each other in the imagedomain, which is likewise a test for determination of a field. As shownin FIG. 8, in either case (side view of the field or end view of thefield) the task is to test if the lines are parallel in the physicalworld, and this is referred to as the parallelism test. After theparallelism test the green may be calibrated and the start of a play maybe determined based upon these characteristics.

The present inventors observed that there are some cases where the fieldmay contain multiple regions of clay which is of generally brown color.The color calibration technique described above can be similarly appliedto deal with these cases so that the system can handle fields ofgenerally green color, fields of generally green and generally browncolors, and fields of generally brown color. Other techniques maylikewise be applied to the generally brown, or generally brown andgenerally green.

The present inventors observed that in many cases the two teams arelined up and most of the motion stops before the start of a play. Atthis point, the camera motion may tend to zoom in to get an improvedpicture and stays focused on the players until the play starts. Thus atthe moment right before a play starts, there will tend to be nosignificant motion in the image domain (neither camera-induced motionnor player motion). Therefore, the present inventors determined that thecamera motion may be used as an additional indicia of the start of aplay. In many instances, a start-of-play will induce a zooming in cameramotion that then stops zooming with the scene being free fromsignificant motion. This is another characteristic that may be used toindicate the start of plays. This technique may likewise be used inconjunction with other techniques to decrease false positives.

There are several techniques that may be used for estimating cameramotion. Some methods such as optical flow estimation may provide densemotion fields and hence provide relatively accurate motion estimationresults. However, optical flow techniques and similar techniques, arecomputationally expensive. A less computationally expensive technique isto infer the camera motion from block-based motion compensation. Inaddition, the motion information is available without additionalcomputation if the system is operating on compressed streams of encodedvideo, such as a MPEG-like bitstream. It has been determined that thetranslational motion can be accurately estimated from the motion vectorswhereas zooming is not accurately estimated from the motion vectors. Theinaccuracy of the motion vectors for zooming may be based on the varyingrate of zooming and the scale changes induced by zooming. Therefore, themotion information is preferably used in the following manner: if thecamera motion is not primarily translational, the system waitsadditional frames to confirm the start of a play; otherwise, thestart-of-play is declared as long as other conditions are satisfied. Awaiting period in the first has dual functions: firstly, it excludesfrom the summary some frames when the camera is zooming before a startof the play; and secondly, it makes the detection of the start-of-playmore robust since more frames have been used to confirm the detection.FIG. 12 illustrates an example of computed motion vectors, when thecamera is switched on after a play has started. It is not difficult todeduce that the camera is panning in this situation, based on theprimary direction of the motion vectors. In this case a start-of-playmay be declared.

As illustrated in FIGS. 2 and 3, in a start-of-play frame, the playersappear as scattered blobs in the image. The blobs may be represented bytheir color and/or texture, and compared against a model of theanticipated color and/or texture for a player. The color and/or texturemay be varied, based on the particular team's clothing. In this manner,the system is customizable for particular teams. In the case that thereare scattered non-generally green blobs their color characteristics maybe compared against a model. In addition, the system may determine,using other techniques, to determine potential start of play frames anduse these frames as the basis to calculate color histograms for theplayers.

Referring to FIG. 13, at the start of the football play the each of theteams tend to line up in some manner. This line up of the players may beused as a characteristic upon which to determine the start of a play.The characteristic of a suitable line up of players includes a generallyaligned set of non-generally green blobs (e.g., regions), such as thegreen mask shown in FIG. 14, as previously described. Further, the blobsshould have a relatively small size, especially in relation to the sizeof the field. In contrast, a relatively large non-generally green blob,such as the green mask shown in FIG. 15, is more likely indicative of aclose up of a player, such as shown in FIG. 16. To characterize thespatial distribution of the non-generally green regions the green masksmay be projected into x and y directions, such as shown in FIG. 17 andFIG. 18. A high and wide peak in the projection, as shown in FIG. 18, isless likely to indicate the start of a play than a generally low set ofpeaks, as shown in FIG. 17. Another approach for analyzing the line upof players may be determining two distinctive groups of blobs lining upalong both sides of a “line” that is parallel to the field lines.

After further consideration, the present inventors determined that if ahiking scene and accordingly a play segment is identified after locatingonly one candidate frame, then the system may be susceptible to falsepositives. By examining a set of consecutive frames (or other temporallyrelated frames) and accumulating evidence, the system can reduce thefalse positive rate. Referring to FIG. 19, the following approach may beused to achieve temporal evidence of accumulation: when detecting ahiking scene, a sliding window of width w is used (e.g., w frames areconsidered at the same time). A hiking scene is declared only if morethan p out of the w frames in the current window are determined to behiking scene candidates, as previously described. A suitable value of pis such that p/w=70%. Other statistical measures may be used of a fixednumber of frames or dynamic number of frames to more accuratelydetermine hiking scenes.

To define the “generally green” color any color space may be used. Thepreferred color space is the HSV color space because it may be usedwithout excessive computational complexity. Alternatively, a YUV colorspace may be used as shown in FIG. 20.

While the start of a “play” may be defined as a hiking scene the end ofa play, according to the rules of football, can end in a variety ofdifferent ways. Image analysis techniques may be used to analyze theimage content of the frames after a hiking frame to attempt to determinewhat occurred. Unfortunately, with the nearly endless possibilities andthe difficultly of interpreting the content of the frames, thistechnique is at least, extremely difficult and computationallyintensive. In contrast to attempting to analyze the content of thesubsequent frames of a potential play, the present inventors determinedthat a more efficient manner for the determination of the extent of aplay in football is to base the end of the play on camera activities.After analysis of a football video the present inventors were surprisedto determine that the approximate end of a play may be modeled by scenechanges, normally as a result of switching to a different camera or adifferent camera angle. The different camera or different camera anglemay be modeled by determining the amount of change between the currentframe (or set of frames) to the next frame (or set of frames).

Referring to FIG. 21A, a model of the amount of change between framesusing a color histogram difference technique for an exemplary 1,000frame video football clip is shown. The peaks typically correspond toscene cuts. The system may detect an end of play at around frame 649 bythresholding the color histogram difference. A gradual transition occursaround frame 350.

As previously noted the scene cuts may be detected by thresholding thecolor histogram differences. The selection of the an appropriatethreshold level to determine scene cuts may be based on a fixedthreshold, if desired. The appropriate threshold level may be calculatedfor each football video, either after processing a segment of the videoor otherwise dynamically while processing the video. One measure of thethreshold level may be based upon the mean m and the standard deviationσ of the frame-to-frame color histogram differences from the wholevideo. The threshold Tc can be calculated as m+cσ where c is a constant.It has been found that c=5 or 6 covers practically almost all the cleanscene cuts. For robustness, after a clean cut has been detected at framek, the system may further compute the color histogram difference betweenframe k−1 and k+1. This difference should be at least comparable to thatbetween k−1 and k. Other comparisons may likewise be used to determineif the difference is a false positive. Otherwise the cut at k may be afalse positive. This concept may be generalized to testing the colorhistogram difference between k−c and k+c, with c being a small positiveinteger (number of frames).

Even with the aforementioned technique there may be some falsedetections which do not correspond to a real play. Also, there aresituations in which a play is broken into two segments due to forexample, dramatic lighting fluctuations (mistaken by the system as ascene cut). Some of these problems can be remedied by post-processing.One example of a suitable post processing technique is if two plays areonly separated by a sufficiently short time duration, such as less thana predetermined time period, then they should be connected as a singleplay. The time period between the two detected plays may be includedwithin the total play, if desired. Even if the two detected plays areseparated by a short time period and the system puts the two playstogether, and they are in fact two separate plays, this results in anacceptable segment (or two plays) because it avoids frequent audio andvisual disruptions in the summary, which may be objectionable to someviewers. Another example of a suitable post processing technique is thatif a play has a sufficiently short duration, such as less than 3seconds, then the system should remove it from being a play because itis likely a false positive. Also, post-processing may be applied tosmoothen the connection between adjacent plays, for both video andaudio.

When the system is used in an “on-line” environment the entire video isnot available for processing. When used in an on-line environment thethreshold Tc may be computed based upon m and σ for the currentlyavailable (or a portion thereof) frames. In addition, to reducecomputational complexity, the frames in a single play may be used uponwhich to calculate m and σ.

Football video tends to include gradual transitions between plays andother activities, such as commentary. These gradual transitions tend tobe computationally complex to detect in the general case. However, inthe case of football it has been determined that detecting gradualtransitions based upon the color histogram differences is especiallysuitable. Other techniques may likewise be used. Referring to FIG. 21B,the preferred technique may include starting from a start-of-play time(t_(o)) and looking forward until a sufficiently large scene change isdetected or until time t_(o)+t_(p) is reached, whichever occurs first.T_(p) relates to the maximum anticipated play duration and thereforeautomatically sets a maximum duration to the play. This time period forprocessing to locate gradual transitions is denoted as t_(clean) _(—)_(cut). If t_(clean) _(—) _(cut)<t_(low) then the system will not lookfor a gradual scene cut and set the previously detected scene cut as theend of the play. This corresponds to an anticipated minimum timeduration for a play and t_(low) is used to denote the minimum timeperiod. Otherwise, the system looks for the highest color histogramdifference in the region t_(low), t_(clean) _(—) _(cut) or other measureof a potential scene change. This region of the segment is from theminimum time duration to the next previously identified scene cut. Thisidentifies the highest color histogram difference in the time durationwhich may be a potential scene change. The time of the highest colorhistogram difference is identified at t₁. In a neighborhood of t₁,[t₁−c₁, t₂+c₂], a statistical computation is performed, such ascomputing the mean m₁ and the standard deviation σ of the colorhistogram differences. C₁ and c₂ are constants or statisticallycalculated temporal values for the region to examine around the highestcolor histogram difference. A mean filtering emphasizes regions having arelatively large difference in a relatively short time interval. If thecolor histogram differences at t₁ exceeds m₁+C₃*σ₁, where c₃ is aconstant (or otherwise) and some of its neighbors (or otherwise) aresufficiently large, then the system considers a gradual transition tohave occurred at around time (frame) t₁. The play is set to the shorterof the previously identified scene cut or the gradual transition, ifany.

Besides the technique of using field lines to assist in calibrating thefield colors, there are other techniques of color calibration. Forexample, the calibration may be performed by a human operator or by thesystem with the assistance of a human operator. The system may performautomatic calibration by using appropriate statistical techniques. Asimple technique is as follows. If the system has obtained a set ofhiking scene candidates, the system can estimate the color histogramsfor green colors from these candidates. Under the assumption that mostof the candidates are true hiking scene frames, the system can detectstatistical outliers in this set. The system then uses the remainingcandidate frames to estimate the specifics of the colors. With the greencolors calibrated the system can perform both the start-of-playdetection and the end-of-play detection more accurately.

Baseball Play Detection

The present inventors also considered how to detect a “play” from abaseball video in a robust, efficient, and computationally effectivemanner. After extensive analysis of a typical baseball game it wasdetermined that a baseball game is usually captured by cameraspositioned at fixed locations around the baseball field, with eachcamera typically capable of panning, tilting, and zooming. Each play ina baseball game normally starts with the pitcher releasing the ball,such as toward the catcher or toward one of the basemen. Further, apitching scene, in which the pitcher is about to throw the ball, isusually captured from a camera location behind the pitcher. This cameraangle is typically used because it is easier to observe the movements ofall of the parties involved (the pitcher, the batter, the catcher, andthe umpire) from this viewpoint. Thus a play typically starts with aframe such as shown in FIGS. 22A-22F.

While an attempt to determine a pitching scene may include complexcomputationally intensive analysis of the frame(s) to detect thepitcher, the batter, the catcher, and the umpire, together withappropriate motion, this generally results in non-robust pitching scenedetection. To overcome this limitation the present inventors weredumbfounded to recognize that the lower portion of a typical pitchingframe includes at least one region of generally green colors (grass orartificial turf), and at least one region of generally brown colors(e.g., soil). Normally the lower portion of a typical pitching frame fordifferent fields includes these colors because the pitching mound andbatting region are soil, with the region in between being grass orartificial turf. In addition, a typical pitching frame includes tworegions of generally brown and/or two regions of generally green. Aframe with one region of each color is sufficient.

Also, the present inventors observed that a typical pitching frameincludes at least three regions of different colors arranged inalternating dominant horizontally oriented bands. Further, these threeor more different color regions are typically generally green andgenerally brown in color. It is to be understood that the colors may bedifferent depending on the particular anticipated colors, and that allthe colors may be different. Depending on the camera angle the pitchingscene may have the generally green color at the bottom of the frame ormay have the generally brown color at the bottom of the frame. Thecolors preferably alternate between generally green (or brown) andgenerally brown (or green). There may be regions of other colors inaddition to the generally green and generally brown. Accordingly, thepreferred criteria is that the colors should be dominant along thehorizontal axis while alternating in the vertical direction for a lowerportion of the frame. In addition, the lower portion of the frame may bedefined as the lower 75% of the frame, the lower 66% of the frame, thelower 50% of the frame, or the lower 30% of the frame, if desired. It isto be understood that the regions may be arranged in other patterns, asdesired. Also, it is to be understood that the location of these regionswithin the frame may be arranged at other portions of the frame, such asthe middle third of the frame, the upper third of the frame, the lowerthird of the frame, the right half of the frame, the left half of theframe, the central region of the frame, etc. An alternativecharacterization may be identification of at least three regions ofsufficient spatial coherence and sufficient horizontal extent.

Referring to FIG. 23, based on these observations, the followingtechnique may be used for detecting the pitching scene. Block 40receives a color image IM of r rows by c columns. Block 42 determinesthe generally green and generally brown colored pixels within the colorimage IM. Block 44 creates a green mask Gmsk, with each locationassigned a value based upon whether or not the corresponding pixel wasgenerally green. In essence, the Gmsk identifies those pixels of thecolor image IM that are sufficiently green. Block 46 creates a brownmask Bmsk, with each location assigned a value based upon whether or notthe corresponding pixel was generally brown. In essence, the Bmskidentifies those pixels of the color image IM that are sufficientlybrown. The result of blocks 44 and 46 is to identify those regions ofthe color image IM that have colors of interest.

Block 48 projects the green mask Gmsk onto the vertical axis, such as inthe manner of a histogram. The green projection may be calculated asGproj(i)= $\frac{l}{c}{\sum\limits_{j}{{Gmsk}\left( {i,j} \right)}}$for i=1, . . . , r. The projection on the vertical axis Gproj(i) issuitable for identification of significant horizontal regions of theimage that correlate to regions of the color image IM that aresufficiently green. Block 50 projects the brown mask Bmsk onto thevertical axis, such as in the manner of a histogram. The brownprojection may be calculated as Bproj(i)=$\frac{l}{c}{\sum\limits_{j}{{Bmsk}\left( {i,j} \right)}}$for i=1, . . . , r. The projection on the vertical axis Bproj(i) issuitable for identification of significant horizontal regions of theimage that correlate to regions of the color image IM that aresufficiently brown. The projection technique is used to identify thoseregions of sufficient spatial coherence and sufficient horizontalextent. It is to be understood that other techniques may likewise beused.

Block 52 quantizes (e.g., binarizes) the green projection. The quantizedgreen projection may be calculated as Gproj(i)=1 if Gproj(i)>p1 andGproj(i)=0 otherwise, where p1 is a threshold value (static or dynamic).Block 54 quantizes (e.g. binarizes) the brown projection. The quantizedbrown projection may be calculated as Bproj(i)=1 if Bproj(i)>p1 andBproj(i)=0 otherwise, where p1 is a threshold value. The green and brownprojections, and especially the binarized green and brown projections,are especially suitable for determining whether the peaks in Gproj andBproj satisfy the spatial constraints of a pitching scene in block 56.In other words, the desired pattern of generally brown and generallygreen regions is determined within the frame. If the spatial constraintsare satisfied then the frame is considered a pitching frame. If thespatial constrains are not satisfied then the frame is not considered apitching frame. After extensive testing it has been determined thatscenes other than a pitching scene is not likely to have the sameconstraints, and accordingly such a constraint will be relativelyaccurate at detecting pitching scenes.

After further consideration, the present inventors determined that if apitching scene and accordingly a play segment is identified afterlocating only one candidate frame, then the system may be susceptible tofalse positives. By examining a set of consecutive frames (or othertemporally related frames) and accumulating evidence, the system canreduce the false positive rate. Referring to FIG. 24, the followingapproach may be used to achieve temporal evidence of accumulation: whendetecting a pitching scene, a sliding window of width w is used (e.g., wframes are considered at the same time). A pitching scene is declaredonly if more than p out of the w frames in the current window aredetermined to be pitching scene candidates, as previously described. Asuitable value of p is such that p/w=70%. Other statistical measures maybe used of a fixed number of frames or dynamic number of frames to moreaccurately determine pitching scenes.

To define the “generally green” color and the “generally brown” colorany color space may be used. The preferred color space is the YUV colorspace because it may be used without excessive computational complexity.In the event that the input video is a MPEG stream, then the Y, U, Vcomponents are directly available after decoding, without further colorspace conversion. Also, a wide range of green and brown colors can bedefined by the lower left quadrant and upper left quadrant of the U-Vplane, respectively, as illustrated in FIG. 25. Thus, it iscomputationally efficient to determine the green and brown masks bycomparing the U and V signals to a fixed value, such as 128.

While the start of a “play” may be defined as a pitching scene the endof a play, according to the rules of baseball, can end in a variety ofdifferent ways. For example, the play can end with the batter missingthe ball, the play can end with a home run, the play can end if the ballis fouled away, the play can end with the batter being thrown out atfirst base, the play can end with the batter being thrown out at secondbase, and the play can end with the batter being ejected from the game.Image analysis techniques may be used to analyze the image content ofthe frames after a pitching frame to attempt to determine what occurred.Unfortunately, with the nearly endless possibilities and the difficultlyof interpreting the content of the frames, this technique is at least,extremely difficult and computationally intensive. In contrast toattempting to analyze the content of the subsequent frames of apotential play, the present inventors determined that a more efficientmanner for the determination of the extent of a play in baseball is tobase the end of the play on camera activities. After analysis of abaseball video the present inventors were surprised to determine thatthe approximate end of a play may be modeled by scene changes, normallyas a result of switching to a different camera or a different cameraangle. The different camera or different camera angle may be modeled bydetermining the amount of change between the current frame (or set offrames) to the next frame (or set of frames).

Referring to FIG. 26, a model of the amount of change between framesusing a color histogram difference technique for an exemplary 1,000frame video baseball clip is shown. The peaks typically correspond toscene cuts. The system may detect a pitching scene at around frame 170.In this particular video clip the batter did not swing, and after thecatcher caught the ball, there is a scene cut at frame 322. Accordingly,a first segment may be defined from frame 170 to frame 322. After thepitcher was ready for another throw, the camera was switched backresulting in a scene cut at frame 428. A new pitching scene was detectedat frame 520. This time the batter hit the ball, and the camera wasswitched to follow the flying ball which resulted in scene cut 2. Inthis case, the play continues, until another scene cut (scene cut 3)when the current play ends and another camera break occurs. As it may beobserved, the scene cut (1) properly identifies the end of the firstsegment in the first pitching scene, while the scene cut (2) does notproperly identify the end of the second segment in the second pitchingscene. Accordingly, for a more accurate representation of the play it isdesirable to distinguish between scene cuts where the play continues andscene cuts where the play ends or has ended. To make this determination,the present inventors determined that most scene cuts where the playcontinues occurs when the camera is still looking primarily at thefield. In this case, the play should continue until a scene cut occurswhere the camera is not looking at the field. If after the scene cut thecamera is not looking at the field, then the current play ends. Thefield may be detected in any manner, such as the frame having sufficientgenerally green or generally brown colors. A flow chart of the techniquefor detecting the end of a play is shown in FIG. 27.

As previously noted the scene cuts may be detected by thresholding thecolor histogram differences. The selection of the an appropriatethreshold level to determine scene cuts may be based on a fixedthreshold, if desired. The appropriate threshold level may be calculatedfor each baseball video, either after processing a segment of the videoor otherwise dynamically while processing the video. One measure of thethreshold level may be based upon the mean m and the standard deviationσ of the frame-to-frame color histogram differences from the wholevideo. The threshold can be calculated as m+cσ where c is a constant. Ithas been found that c=5 or 6 covers practically almost all the cleanscene cuts. For robustness, after a clean cut has been detected at framek, the system may further compute the color histogram difference betweenframe k−1 and k+1. This difference should be at least comparable to thatbetween k−1 and k. Other comparisons may likewise be used to determineif the difference is a false positive. Otherwise the cut at k may be afalse positive. This concept may be generalized to testing the colorhistogram difference between k−c and k+c, with c being a small positiveinteger (number of frames).

Even with the aforementioned technique there may be some falsedetections which do not correspond to a real play. Also, there aresituations in which a play is broken into two segments due to forexample, dramatic lighting fluctuations (mistaken by the system as ascene cut). Some of these problems can be remedied by post-processing.One example of a suitable post processing technique is if two plays areonly separated by a sufficiently short time duration, such as less thana predetermined time period, then they should be connected as a singleplay. The time period between the two detected plays may be includedwithin the total play, if desired. Even if the two detected plays areseparated by a short time period and the system puts the two playstogether, and they are in fact two separate plays, this results in anacceptable segment (or two plays) because it avoids frequent audio andvisual disruptions in the summary, which may be objectionable to someviewers. Another example of a suitable post processing technique is thatif a play has a sufficiently short duration, such as less than 3seconds, then the system should remove it from being a play because itis likely a false positive. Also, post-processing may be applied tosmoothen the connection between adjacent plays, for both video andaudio.

Although most plays start with a pitching scene illustrated in FIG. 22,one of the potential plays in baseball starts with a different cameraangle, namely, the one for base-stealing. Typically the base stealingcamera is directed toward first base (though second and third base arelikewise possible). The detection technique may be used to likewisereadily detect base stealing frames as the start of a play. In this casethe colors tend to be a region of generally brown for the mound,generally green for the field, and generally brown for the field.However, the size of the brown regions are significantly different,which may be used as a basis to characterize the field. Also, theregions tend to encompass the entire frame (or majority).

While very loose color definitions for the colors is permitted, it ispossible to calibrate the colors for a specific game. Calibrated colorspermits more accurate play detection for a particular video. Thecalibration may be performed by a human operator or by the system withthe assistance of a human operator. The system may perform automaticcalibration by using appropriate statistical techniques. A simpletechnique is as follows. If the system has obtained a set of pitchingscene candidates, the system can estimate the color histograms for greenand brown colors, respectively, from these candidates. Under theassumption that most of the candidates are true pitching scene frames,the system can detect statistical outliers in this set. The system thenuses the remaining candidate frames to estimate the specifics of thecolors. With the green and brown colors calibrated, the system canperform both the start-of-play detection and the end-of-play detectionmore accurately.

At times the pitcher is ready to pitch but the batter is sometimes notyet in position and it takes the batter considerable time to get intoposition. In this case, the resulting play and thus the summary willcontain significant time during which the batter is getting ready. Tofurther refine the start of the play, a batter position module may beused. The module detects whether there are multiple sufficient gaps inthe highest green region, and preferably whether the gaps shift withtime. The gaps are readily observable in the green mask. If more thantwo sufficient gaps exist or the gaps shift with time, then the batteris typically not ready. Otherwise the batter is ready.

Sports Play Detection

It is to be understood that other similar techniques may likewise beused to identify plays or otherwise relevant portions of other sportingbased videos.

As it may be observed most sports programs may be modeled as aconcatenation of “event” and “non-event” video segments, with “event”being defined according to the specific underlying sport (which may ormay not include a play or a portion of a play). For example, forAmerican football, an event can be defined as a “play”. With thismodeling, the principal task of semantic analysis becomes the detectionof the events in a video (for a specific sport, richer semantics may beformed on the basis of the events. For example, “Quarters” in footballconsist of a set of play events). Potential techniques for the detectionof events in a video is described above.

American football coaches, both of professional teams and of collegeteams, routinely use a specific type of video in their training andstrategy planning. The specific type of video may be coach preferencespecific and is normally presented in a consistent manner. This video(“coaching tapes”) is typically formed by a human operator by editingvideo captured from two or three different camera angles during a livegame (alternatively an automated or semi-automated technique may beused). Each camera captures all, or otherwise a substantial number, ofthe plays (or portions thereof) of a game. For example, the most commoncoaching tape may be referred to as a sideline/end-zone interleavedcoaching tape. In such a coaching tape each play (or otherwise aplurality of plays, or majority of plays, or a series of three or moreconsecutive plays, or a series of five or more consecutive plays)contains a score board shot (SB) (a segment that includes a frameshowing the scoreboard), followed by a sideline shot (SL) of the play (asegment that includes a frame showing the field from a location to theside of the field), that is followed by an end-zone shot (EZ) of thesame play (a segment that includes a frame showing the field from alocation to the end of the field), as illustrated in FIG. 28. In somecases, the end-zone shot is generally directed along the length of thefield while the side-zone shot is generally directed across the width ofthe field. Other variations or combinations of different plays orsegments, may be used as desired. A football coach uses not only thecoaching tapes from his own team but also uses coaching tapes from otherteams, and routinely logs the tapes and adds his own annotations foreach play. A coach can use a commercially available logging systems forviewing the coaching tape and adding annotations. The coach, however,has to painstakingly seek the start point of each play/shot/segmentbefore adding annotations to that play/shot.

The coaching tape may be created using the automated segmentationtechniques described above, or alternatively any other suitabletechnique. Alternatively, the coaching tape may be created using manualselection techniques. Therefore, there is a need for automatic parsingof the video in order to identify the segments in some manner to providequick nonlinear indexing and navigation capabilities, such as forindexing the video.

The automatic parsing of the video sequence is used to detect each play,shot, segment, or set of segments so that the logging system can providea coach with quick and accurate access points (such as a framesubstantially coincident with the start of a play, a shot, or a segment)to each play. In the event that the segmentation is 100% accurate andthat the video segments have the precisely anticipated characteristics,the identification may be performed using a suitable technique.Unfortunately, many coaching tapes contain abnormal situations whichmight be the result of the live production of the tape. For example,some plays may not have the scoreboard shot and some plays may containmore than one scoreboard shot. In addition, many coaches may demandsubstantially 100% accuracy in the identification. Without sufficientaccuracy the annotations may be associated with the wrong plays.

Deterministic Approach

One technique to determine accurate segment identification is adeterministic approach to event identification. This may be applied tothe coaching tape, the segment identifications as a result of automatedor semi-automated segmentation, the summarized video tape as a result ofautomated or semi-automated segmentation, or otherwise any suitabletape. A deterministic approach typically involves representing an eventin terms of low-level visual and/or audio characteristics. The audioand/or video characteristics are in general sport-specific. For example,for football, field color, camera motion, field lines, etc., may beused. With the characteristics identified, a deterministic approachperforms the reasoning based on a set of domain-specific rules, as shownfor example in FIG. 29.

For the exemplary coach video, the characteristic features thatcategorize each of the anticipated shot types are identified: SB, SL,and EZ. Referring again to FIG. 28, it may be observed that thepercentage of green pixels in a frame is a useful characteristics fordistinguishing a SB shot from SL/EZ shots. In essence, color basedcharacteristics may be used to distinguish a SB shot from SL/EZ shots.Also, the SB shot is typically very short (2-4 seconds), and a SL or EZshot can be 3-25 seconds long. In essence, the duration of the SB shotrelative to the duration of the SL or EZ shot may be used to distinguisha SB shot from a SL or EZ shot. Yet another characteristic that may beused is that a SL/EZ shot typically contains action and thus the lastframe of the SL/EZ shot is typically substantially different from thefirst frame of the same SL/EZ shot, while the first and last frames of aSB shot are substantially the same. Therefore, the difference betweenthe first frame and the last frame of the same shot may be used todistinguish a SB shot from a SL/EZ shot. In some respects, thiscomparison reflects a shot's motion complexity. In essence, any motionbased characteristic (e.g., a measure of change) may be used todistinguish a SB shot from a SL/EZ shot. Another characteristic thatgoverns the underlying semantics is that a play is typically an orderedtriplet of <SB-SL-EZ>. This anticipated order provides a semanticconstraint that may be used. Alternative semantic constraints of thenumber of and type of segments may be used. For instance, SL should bepreceded by a SB and followed by an EZ.

The following definitions may be defined and then a rule-based techniquemay be applied.

-   -   Pg=Percentage of green pixels in the first few frames (or a        selected frame) of the shot;    -   D=Color histogram difference between the first frame and the        last frame of the shot;    -   L=Length of the shot.        Algorithm I:

Loop for the video {  Step 1. Detect a shot Si.  Step 2. Compute Pg, D,and L. If Pg, D, and/or L exceed   pre-determined thresholds, classifySi as a SL or EZ;   otherwise classify Si as a SB shot.  Step 3. If Siis a SL/EZ, check the identification of the previous shot  Si-1   IfSi-1 is SB or EZ, then classify Si as SL;   if Si-1 is SL, then classifySi as EZ. }

One may also or alternatively use additional cues such as an estimatedcamera angle (e.g. through field line detection) for furtherdistinguishing a SL shot from a EZ shot, and thus modify Step 3. Thethresholds may likewise be modified to include multiple thresholds andcomparisons for one or more of the features. For example, even if a shotis shorter than the length threshold for SL/EZ, if the frames are almosttotally dominated by green pixels, then it should still be classified asSL/EZ. These additional characteristics may assist in distinguishingbetween irregular cases, such as those shown in FIG. 30.

Deterministic approaches can be very accurate and are computationallyefficient. However, there are two significant disadvantages. First,implicitly setting the inference rules may not be easy in some cases,especially when the inference is based on a large number of cues.Second, one has to choose some hard or relativistic thresholds. It isdifficult to use a fixed threshold to cover all the variations inreal-world video (e.g., some field can have very yellowish grass or withrandom-colored logo overlays which render the field far from beinggreen). In addition, the length is not always a reliable cue indistinguishing SB from SB/EZ, as shown in FIG. 31. Further, since manyplays are short and may lack action (and the camera may shoot from along range), the resultant D could be as small as, or even smaller than,that of SB shots, as illustrated in FIG. 32. These anomalies render itvery difficult to achieve 100% using a rule-based reasoning. In fact,with multiple cues, setting rules and choosing thresholds becomesincreasingly intricate as the number of irregular cases grows with eachnew sequence added to the test.

Probabilistic Approach

An alternative technique may be used, such as a probabilistic approach.This may be applied to the coaching tape, the segment identifications asa result of automated or semi-automated segmentation, the summarizedvideo tape as a result of automated or semi-automated segmentation, orotherwise any suitable tape. One probabilistic inference approachinvolves using a Hidden Markov Model (HMM). A straightforward way ofusing HMM for inference is assuming that shots have been detected, andthat each shot is generated with probability by certain underlyingstate. For example, one can use a four-state HMM shown in FIG. 33, forfootball play detection, where arrowed lines indicate possibletransitions between the states. Training sequences of shots withpre-specified play/non-play segmentation are used to estimate the modelparameters. To detect plays in an input video, shots are detected first.Then, the most likely sequence of states is found using the Viterbialgorithm. Plays are detected by identifying sequences of states“(1)-(2)-(3)”. Alternative probabilistic type techniques may likewise beused.

The aforementioned HMM probabilistic inference approach relies on a shotdetection module (or play or segment or portions thereof) to identifythe shots (or pay or segment of portions thereof), and then uses aHMM-based module to do the inference. Another way of using HMM, whichaddresses both identification and high-level inference, is as follows.For parameter estimation, a feature vector is computed for each frame intraining sequences. Each frame in the training sequences is labeled withone of the four states. Parameter estimation for the HMM may be doneusing Baum-Welch algorithm. The trained HMM is then used to classifyeach frame of a new sequence. By modifying the model according to domainknowledge and using different feature vectors, one may obtain variousalgorithms for different sports.

The classification of the events may be based upon the anticipatedpatterns in the coaching tape using a first-order Markov transitionmodel. One Markov transition model is illustrated in FIG. 34.

The first-order Markov transition model may be defined by letting P(Z|C)be the probability of observing the feature vector Z given shot class C,where Z consists of three components: Pg, D, and L. C takes either ofthe values in {SB, SL, EZ}. For simplicity, one may assume that thecomponents of Z are independent of each other, and thus haveP(Z|C)=P(Pg|C)P(D|C)P(L|C). Now, the individual probabilities P(Pg|C),P(D|C), and P(L|C) can be set empirically or learnt from the data (e.g,using the empirical distributions in FIGS. 31 and 32). An alternative isto set or learn the joint distribution P(Z|C) without the independenceassumption, which may require a significant amount of training datasince one needs to estimate the 3-D distribution at once.

A first-order transition matrix {Pt(Si|Si−1)} may specify the transitionprobabilities of FIG. 34. The following algorithm may be used:

Algorithm II:

Determine the class Ck0 for shot S0. Loop for the video {  Step 1.Detect a shot Si.  Step 2. Compute Z, and P(Z|Ck) for all k.  Step 3.Compute P(Z|Ck)Pt(Si|Si-1), and set current shot to   Ccurr:    Ccurr =max(k) P(Z|Ck)Pt(Si|Si-1) }

Algorithm II may have a Bayesian interpretation. The problem is to findthe most probable state label Ck(Si) for the current shot Si, given afeature vector Z and the state label for the previous shot Si−1, i.e, tomaximize P(Ck(Si)|Z) given Cj(Si−1). Applying Bayesian rule yields that<P(Ck(Si)|Z)|Cj(Si−1)> is proportional to<P(Z|Ck(Si))Pt(Si|Si−1)|Cj(Si−1)>. Thus, if no prior information isavailable, the solution is found by maximizing P(Z|Ck(Si)). Otherwise,when Cj(Si−1) is given, one may maximize P(Z|Ck(Si))Pt(Si|Si−1) withrespect to k to find the solution. Note that this algorithm is asimplified case of a full-fledged HMM algorithm. It can be readilyextended to a full HMM algorithm.

While the proposed system can be a stand-alone system, the system and/orthe methods can be readily integrated into any existing logging systemsin order to add automatic functionalities to those systems. For example,the FIG. 35 illustrates the proposed system integrated into a videocoaching system.

All references cited herein are hereby incorporated by reference.

The terms and expressions which have been employed in the foregoingspecification are used therein as terms of description and not oflimitation, and there is no intention, in the use of such terms andexpressions, of excluding equivalents of the features shown anddescribed or portions thereof, it being recognized that the scope of theinvention is defined and limited only by the claims which follow.

1. A computer implemented method of processing video including a sport comprising: (a) identifying a plurality of frames of said video, based upon a series of activities defined by the rules of the sport that could potentially result in at least one of: (i) a score; (ii) preventing a score; (iii) advancing a team toward a score; and (iv) preventing advancing a team toward a score; (b) creating a summarization of said video by including said plurality of segments, where said summarization includes fewer frames than said video; and (c) wherein said activities are identified by said computer without user intervention based upon scene changes.
 2. The method of claim 1 wherein said summarization of said plurality of segments is in the same temporal order as said plurality of segments within said video.
 3. The method of claim 1 wherein said activities are determined based upon the color characteristics of said video.
 4. A computer implemented method of processing video including a sport comprising: (a) a computing device identifying a plurality of frames of said video, based upon a series of activities defined by the rules of the sport that could potentially results in at least one of: (i) a score; (ii) preventing a score: (iii) advancing a team towards a score; and (iv) preventing a team advancing toward a score; (b) creating a summarization of said video by including said plurality of segments, where said summarization includes fewer frames than said video; and (c) wherein said activities are identified by said computing device without user intervention based upon scene changes.
 5. The method of claim 4 wherein said summarization of said plurality of segments is in the same temporal order as said plurality of segments within said video.
 6. The method of claim 4 wherein said activities are determined based upon the color characteristics of said vide. 